# 快速生成列表
print([i for i in range(1, 11)])

print([i for i in range(1, 11, 2)])

print([i for i in range(1, 11) if i % 2 == 0])
print([i for i in range(1, 11) if i % 2 != 0])

print([(i, j) for i in range(1, 3) for j in range(1, 4)])

lista = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print([lista[i:i + 3] for i in range(0, len(lista), 3)])


